//
//  MeiFCollectionCell.m
//  MyProject
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 蓝鸥0825. All rights reserved.
//

#import "MeiFCollectionCell.h"

#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation MeiFCollectionCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create{
    
    self.image = [[UIImageView alloc] initWithFrame:CGRectMake( WIDTH / 100 * 2, HEIGHT / 100 * 2, WIDTH / 100 * 96, HEIGHT / 100 * 96)];
    [self addSubview:self.image];
    
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH / 100 * 20, HEIGHT / 100 * 45, WIDTH / 100 * 60, HEIGHT / 100 * 10)];
    [self addSubview:self.label];
    self.label.textColor = [UIColor whiteColor];
    self.label.font = [UIFont systemFontOfSize:25 weight:18];
    self.label.textAlignment = NSTextAlignmentCenter;
}








@end
